$a('.box9').forEach(function(v){
     v.addEventListener('click',function(){
    // console.log(1); 
    $('.mask').style.display = 'flex'
})
})
$('.pp1').addEventListener('click',function(){
    $('.pp1').style.color = '#00bdff';
    $('.divv2').style.display = "none"
    $('.divv1').style.display = "block"
    $('.pp2').style.color = '';
    $('.nonee3').style.display = "none"
    $('.nonee').style.display = "block"
})
$('.pp2').addEventListener('click',function(){
    $('.pp2').style.color = '#00bdff';
    $('.divv2').style.display = "flex"
    $('.divv1').style.display = "none"
    $('.pp1').style.color = '';
    $('.nonee3').style.display = "flex"
    $('.nonee').style.display = "none"
    $('.clear').style.display = "none"
    $('.clear2').style.display = "none"
})
$('.input1').addEventListener('input',function(){

    if ($('.input1').value.length>0) {
    $('.clear2').style.display = "block"
    }else{
    $('.clear2').style.display = "none"
    }
})
$('.input2').addEventListener('input',function(){

    if ($('.input2').value.length>0) {
    $('.clear').style.display = "block"
    }else{
    $('.clear').style.display = "none"
    }
})
$('.clear').addEventListener('click',function(){
    $('.input2').value = '';
    $('.clear').style.display = "none"
})
$('.clear2').addEventListener('click',function(){
    $('.input1').value = '';
    $('.clear2').style.display = "none"
})
$(".input2").addEventListener("blur", function () {
    console.log(1);
  let a = /^[a-zA-Z][a-zA-Z0-9_]{5,11}$/
  let b= a.test($(".input2").value);
  if (!b) { 
    console.log(1);
    $(".box8").style.display ="block"
  }
  else {
    $(".box8").style.display = "none";
  }
})
// 手机号码 
$(".input1").addEventListener("blur", function () {
    console.log(1);
  let a = /^1[345678][0-9]{9}$/
  let b= a.test($(".input1").value);
  if (!b) { 
    console.log(1);
    $(".box7").style.display ="block"
  }
  else {
    $(".box7").style.display = "none";
  }
})